//主数据表格配置
export const columns = [
  // { title: '所属单位', dataIndex: 'orgPid', key: 'orgPid', align: 'center' },
  // { title: '生产企业Pid', dataIndex: 'manufacturerOrgPid', key: 'manufacturerOrgPid', align: 'center' },
  { title: '生产企业社会编码', dataIndex: 'manufacturerCode', key: 'manufacturerCode', align: 'center' },
  { title: '生产企业中文名称', dataIndex: 'manufacturerZh', key: 'manufacturerZh', align: 'center',scopedSlots: { customRender: 'column' } },
  { title: '生产企业英文名称', dataIndex: 'manufacturerEn', key: 'manufacturerEn', align: 'center' },
  { title: '生产企业城市', dataIndex: 'city', key: 'city', align: 'center' },
  { title: '生产企业地点', dataIndex: 'addr', key: 'addr', align: 'center' },
  { title: '是否外资', dataIndex: 'foreign', key: 'foreign', align: 'center' },
  { title: '有效期', dataIndex: 'licenceValidDate', key: 'licenceValidDate', align: 'center' },
  { title: '主证照信息', dataIndex: 'licenceMaster', key: 'licenceMaster', align: 'center',scopedSlots: { customRender: 'licenceMaster' } },
  // { title: '其他证照信息', dataIndex: 'licences', key: 'licences', align: 'center' },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'operation',
    width: 180,
    align: 'center',
    scopedSlots: { customRender: 'action' }
  }
]
//主数据明细columns
export const columnsDetail=[]

//主数据查询配置
export const q_formInfos = [
  { label: '生产企业名称', name: 'manufacturerZh', type: 'input', placeholder: '生产企业中文名称' },
  { label: ['查询', '重置'], type: 'botton' }
]

export const q_formDatas = {
  manufacturerZh: null
}

//添加主数据表单配置
export const s_FormInfo = [
  // { label: '所属单位', name: 'orgPid', type: 'input', placeholder: '请输入所属单位' },
  // { label: '生产企业Pid', name: 'manufacturerOrgPid', type: 'input', placeholder: '请输入生产企业Pid' },
  { label: '生产企业社会编码', name: 'manufacturerCode', type: 'input', placeholder: '请输入生产企业社会编码' },
  { label: '生产企业中文名称', name: 'manufacturerZh', type: 'input', placeholder: '请输入生产企业中文名称' },
  { label: '生产企业英文名称', name: 'manufacturerEn', type: 'input', placeholder: '请输入生产企业英文名称' },
  { label: '生产企业城市', name: 'city', type: 'input', placeholder: '请输入生产企业城市' },
  { label: '生产企业地点', name: 'addr', type: 'input', placeholder: '请输入生产企业地点' },
  { label: '是否外资', name: 'foreign', type: 'radio2',options:[{id:"是",value:'是'},{id:"否",value:'否'}], placeholder: '请选择是否外资' },
  // { label: '有效期', name: 'licenceValidDate', type: 'input', placeholder: '请输入有效期' },
  // { label: '主证照信息', name: 'licenceMaster', type: 'input', placeholder: '请输入主证照信息' },
  // { label: '其他证照信息', name: 'licences', type: 'input', placeholder: '请输入其他证照信息' },
  { label: ['保存', '重置'], type: 'botton' }
]
export const s_formDatas = {
  sysSeq: 0,
  pid: '',
  manufacturerOrgPid: null,
  manufacturerCode: null,
  manufacturerZh: null,
  manufacturerEn: null,
  city: null,
  addr: null,
  foreign: "1",
  licenceValidDate: null,
  licenceMaster: null,
  licences: null,
  state: null
}
export const s_rules = {
  manufacturerCode: [{ required: true, message: '生产企业社会编码必填', trigger: 'blur' }],
  manufacturerZh: [{ required: true, message: '生产企业中文名称必填', trigger: 'blur' }]
}

//查看明细显示配置
export const infoDatas =  [
  { title: '所属单位', id: 'orgPid', value: '' },
  { title: '生产企业Pid', id: 'manufacturerOrgPid', value: '' },
  { title: '生产企业社会编码', id: 'manufacturerCode', value: '' },
  { title: '生产企业中文名称', id: 'manufacturerZh', value: '' },
  { title: '生产企业英文名称', id: 'manufacturerEn', value: '' },
  { title: '生产企业城市', id: 'city', value: '' },
  { title: '生产企业地点', id: 'addr', value: '' },
  { title: '是否外资', id: 'foreign', value: '' },
  { title: '有效期', id: 'licenceValidDate', value: '' },
  // { title: '主证照信息', id: 'licenceMaster', value: '' },
  { title: '其他证照信息', id: 'licences', value: '' },
  { title: '状态', id: 'state', value: '' }
]
